package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_l_ck_vehicle_delete", desc = "珍兽放生", autoSave = true, uploadCk = true)
public class LogDeleteVehicle extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "珍兽唯一id")
    private String vehicleUid;
    @FieldTypeAnnotation(desc = "珍兽配置id")
    private int templateId;
    @FieldTypeAnnotation(desc = "等级")
    private int level;
    @FieldTypeAnnotation(desc = "突破等级")
    private int breakLv;
    @FieldTypeAnnotation(desc = "学习等级")
    private int studyLv;
    @FieldTypeAnnotation(desc = "获得时间")
    private long createTime;
    @FieldTypeAnnotation(desc = "获得回收材料")
    private String reward;
    @FieldTypeAnnotation(desc = "是否自动放归")
    private boolean autoRecycle;

    public LogDeleteVehicle(long userId, String vehicleUid, int templateId, int level, int breakLv, int studyLv, long createTime,
                            String reward, boolean autoRecycle) {
        this.userId = userId;
        this.vehicleUid = vehicleUid;
        this.templateId = templateId;
        this.level = level;
        this.breakLv = breakLv;
        this.studyLv = studyLv;
        this.createTime = createTime;
        this.reward = reward;
        this.autoRecycle = autoRecycle;
    }

    public long getUserId() {
        return userId;
    }
}
